<?php

namespace Admin\Controller;

class SettingController extends AdminController {

    public function save() {
        $setting = C('setting');
        if($setting == null){
            $setting = [];
        }
        $data = I('post.');
        $setting = array_merge($setting,$data);
        $array['setting'] = $setting;
        $string = var_export($array,true);
        $string = "<?php\n return ".$string.';';
        file_put_contents(CONF_PATH.'setting.php', $string);
        $this->success('修改成功');
    }
   
    public function index(){ 
        $this->display();
    }
    public function price(){
        $this->display();
    }
    public function qcloud(){ 
        $this->display();        
    }
    public function system(){ 
        $this->display();
    }
    
    

}
